import { commonTableOptions } from '@/utils/util'

export const tableOption = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    searchMenuSpan: 6,
    menuWidth: 300,
    menu: true,
    header: true,
    addBtn: true,
    addBtnText: '新增',
    editBtn: true,
    deleteBtn: true,
    column: [
      {
        label: '标题',
        prop: 'p1',
        search: true,
        overHidden: true,
        search: true,
      },
      {
        label: '工作小结',
        prop: 'p2',
        overHidden: true,

      },
      {
        label: '工作计划',
        prop: 'p3',
        overHidden: true,
      },
      {
        label: '年度',
        prop: 'p4',
        overHidden: true,
        search: true,

      },
      {
        label: '月度',
        prop: 'p5',
        overHidden: true,
        search: true,

      },
      {
        label: '状态',
        prop: 'p6',
        overHidden: true,
        search: true,
        type: 'select'
      },
      {
        label: '提交时间',
        prop: 'p7',
        overHidden: true,
      },
    ]
  }
}

export const options1 = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    searchMenuSpan: 6,
    menu: false,
    addBtn: true,
    addBtnText: '新增',
    searchShow: false,
    editBtn: true,
    deleteBtn: true,
    column: [
      {
        label: '处理类型',
        prop: 'p1',
        search: true,
        overHidden: true,
        search: true,
      },
      {
        label: '处理时间',
        prop: 'p2',
        overHidden: true,
      },
      {
        label: '处理人',
        prop: 'p3',
        overHidden: true,
      },
      {
        label: '处理内容',
        prop: 'p4',
        overHidden: true,
      },
    ]
  }
}